package com.hitqz.robot.api.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author xupkun
 * @date 2025/3/6
 */
@Data
@TableName("sensor_modules")
@Schema(description = "io传感器模块")
public class SensorModulesEntity {

    @TableId(type = IdType.AUTO)
    @Schema(description="主键id")
    private Integer id;

    @Schema(description="ip地址， ip:port")
    private String ip;

    @Schema(description="传感器名称")
    private String name;

    @Schema(description="节点编号")
    private Integer pointSn;

    @Schema(description = "传感器触发动作")
    private Integer sensorAction;

    @Schema(description = "传感器 0-立即触发")
    private Integer sensorKeep;

    @Schema(description = "触发的请求 上升沿触发")
    private String upUri;

    @Schema(description = "触发的请求 下升沿触发")
    private String downUri;
}
